#ifndef __CONFIG_H__
#define __CONFIG_H__
//
//Stucture holding  led and button settings
//
struct LB
{
	unsigned char led_and_button[2];
	unsigned long led_curent;
	unsigned long led_PUSH_PULL;
	unsigned long int_det_mech;
};
//
//Stucture holding  PWM settings
//
struct PWM_parameters
{
	unsigned char check; 
	unsigned long genNum;
	unsigned long config;
	unsigned long period;
	unsigned long pulsewidth[2];
	short		  deadBand;
	short		  rise;
	short		  fall;
	short		  interrupt;
	unsigned long ulIntTrig;
	unsigned long invert[2];
	short		  faultinterrupt;
	unsigned long output[2];
	unsigned long ulGenFault;
	unsigned long outputbitA;
	unsigned long outputbitB;
};
//
//Structure holding ADC settings
//
struct ADC_parameters
{
	unsigned char check;
	unsigned long ulPriority;
	unsigned long ulTrigger;
	unsigned long ulStep;
	unsigned long ulStepConfig;
	unsigned long ulOversampleFactor;
};



//
//Convert UART entered string to unsigned long digit
//
extern unsigned char ChoiseNum(unsigned char max);
//
//Convert UART entered string to unsigned long number
//
extern unsigned long Choice(unsigned long max);
//
//Send a string to the PC
//
extern void UARTSend(const unsigned char *pucBuffer, unsigned long ulCount);

#endif //__CONFIG_H__
